<#include "ignore.cond.ftl">
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <#noparse><#include "../head.ftl"/>
    <!--页面模版宏-->
    <#include "../_macro/query.ftl"/>
    <#include "query_js.ftl"/>
    </#noparse>
</head>
<body class="margin-5">
<div id ="conditions" class="layui-row layui-form edit-form layui-col-space5">
    <#noparse>
    <@commonQuery></@commonQuery>
    <@queryCondition>
    </#noparse>
        <!--查询条件-->
    <#if page.queryCon??>
    <#list page.queryCon as item>
        <#if item.type=='TEXT'>
            <@TEXT field=item.field title=item.title width=item.width verify=item.verify max=item.max min=item.min></@TEXT>
        <#elseif  item.type=='SELECT'>
            <@SELECT field=item.field title=item.title width=item.width dict=item.dict verify=item.verify max=item.max min=item.min></@SELECT>
        <#elseif  item.type=='MULI_TEXT'>
            <@MULI_TEXT field=item.field title=item.title width=item.width verify=item.verify max=item.max min=item.min></@MULI_TEXT>
        </#if>
    </#list>
    </#if>
    <#noparse>
    </@queryCondition>
    </#noparse>
</div>
<table class="layui-hide" id="page" lay-filter="page"></table>
<#noparse>
<@queryAct>
</#noparse>
<!--表操作-->
<#if page.queryAct??>
<#list page.queryAct as item>
    <a class="layui-btn layui-btn-sm ${item.css!}" lay-event="${item.func}">${item.title!}</a>
</#list>
</#if>
<#noparse>
</@queryAct>
</#noparse>
<#noparse>
<@tableAct>
</#noparse>
<!--列操作-->
<#if page.queryColAct??>
<#list page.queryColAct as item>
    <a class="layui-btn layui-btn-xs ${item.css!}" lay-event="${item.func}">${item.title!}</a>
</#list>
</#if>
<#noparse>
</@tableAct>
</#noparse>
<#noparse><@queryScript</#noparse> name="${page.title!}" editUrl="/${module}/page/edit" delUrl="/${module}/data/del" queryUrl="/${module}/data/load" viewUrl="/${module}/page/view">
    [
<#if page.queryCol??>
<#list page.queryCol as item>
    {field: '${(item.alias=='')?string(item.field,item.alias)}', title: '${item.title!}' ${(item.sort=="1")?string(',sort:true','')} ${(item.width=="")?string('',',width:"'+item.width+'%"')} ${(item.event=="")?string('',',event:\''+item.event+'\',  templet:\'<div><a class="layui-table-link">{{d.'+item.field+'}}</a></div>\'')}},
</#list>
</#if>
<#if (page.queryColAct?size>0) >
    {title: '操作', toolbar: '#rowBar',fixed:'right'}
</#if>
    ]
<#noparse>
</@queryScript>
</#noparse>
</body>
</html>